import request from '@/utils/request'

/**获取煤炉(个人)订单数据抓取记录 */
export function getOrderMercariIndividualRecordsList(params) {
  return request({
    url: '/distribution/orderMercari/getOrderMercariIndividualRecordsList',
    params
  })
}


/**获取煤炉(个人)订单列表 */
export function getList(params) {
  return request({
    url: '/distribution/orderMercari/getList',
    params
  })
}

/**通过抓取记录id删除批次记录 */
export function deleteOrderMercariIndividualByRecordsId(recordsId) {
  return request({
    url: '/distribution/orderMercari/deleteOrderMercariIndividualByRecordsId/' + recordsId,
    method: 'DELETE',

  })
}

/**修改煤炉记录详情 */
export function updateOrderMercariIndividual(data) {
  return request({
    url: '/distribution/orderMercari/updateOrderMercariIndividual',
    method: 'POST',
    data

  })
}

/**同步煤炉网站数据到ERP系统 */
export function syncData(data) {
  return request({
    url: '/distribution/orderMercari/syncData',
    method: 'POST',
    data
  })
}

/**同步煤炉网站数据到ERP系统之前校验产品名称是否包含SKU */
export function checkSku(recordsId) {
  return request({
    url: `/distribution/orderMercari/checkSku?recordsId=${recordsId}`,
  })
}



